package com.bilibili.ifelse;

public class random {
    public static void main(String[] args) {
        ran();
    }
    public static void ran(){
        String yzm = "";
        for (int i = 0 ; i < 4 ; i++){
            int num = (int) (Math.random()*3);
        switch (num){
            case 0:
                int yzmnum = (int)(Math.random()*10);
                yzm+=yzmnum;
                System.out.printf("%d",yzmnum);
                System.out.println();
                break;
            case  1:
                int yzmA = (int) (Math.random()*26);
                char A = (char) ('A'+yzmA);
                yzm+=A;
                System.out.println(A);
                System.out.println();
                break;
            case  2:
                int yzma = (int)(Math.random()*26);
                char a = (char) ('a'+yzma);
                yzm+=a;
                System.out.println(a);
                System.out.println();
                break;
            }
        }
        System.out.printf(yzm);
    }
}
